package com.tcu.order.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("sbn_order")
public class Order {

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    private String userId;
    private String workerId;
    private Double totalPrice;
    private String orderParentId;

    @TableLogic
    private Integer isDeleted;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    private Integer status;
    private String address;
    private String pay_method;
    private String orderDescription;
    @Version
    private Integer version;
}
